let customers: [string, number, string, string, string] = [
  "wangwu",
  23,
  "江西",
  "上饶",
  "兴洲区",
];

console.log(customers[2]);

// 可变元组
let customers2: [string, number, string, ...any[]] = ["wangwu", 23, "江西"];

// 可变元组接口
let [username, age, province, ...rest]: [string, number, string, ...any[]] = [
  "wangwu",
  23,
  "江西",
  "上饶",
];
console.log(rest);

// 可变元组tag
let [userName, userAge, userProvince, ...userRest_]: [
  userName: string,
  userAge: number,
  userProvince: string,
  ...userRest_: any[]
] = ["wangwu", 23, "江西", "上饶"];
console.log(userRest_);

export {};
